package com.atguigu.cloud.tool;/**
 * @Auter zzh
 * @Date 2024/11/15
 */

/**
 * @projectName: keshe
 * @package: com.atguigu.cloud.tool
 * @className: getdata
 * @author: Eric
 * @description: TODO
 * @date: 2024/11/15 13:46
 * @version: 1.0
 */
public class getdata {
    //自动获取当前的时间戳,并返回日期
    public static String getdate(){
        long time = System.currentTimeMillis();
        String date = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(time));
        return date;
    }
}
